// app.js
App({
  globalData:{
    userId: '',
    username: '',
    password: '',
    avatar: '',
    name: '',
    gender: '',
    age: '',
    bio: '',
    isLogin: false,
    url: 'http://192.168.31.209:8080',
    wsUrl: 'ws://192.168.31.209:8080'
  },
  checkLogin(gotoUrl){
    if(this.globalData.isLogin == false){
      wx.navigateTo({
        url: gotoUrl,
        success: function (res) {
          // 跳转成功后的回调
        },
        fail: function (res) {
          // 跳转失败的回调
          console.log(res);
        }
      })
    }
  }
})
